naftiko: 1.0.0-alpha2 info: label: LangSmith — fleet usage description: 'LangSmith — fleet usage. 4 operations. Lead operation: List fleet agents with usage. Self-contained Naftiko capability covering one Langsmith business surface.' tags: - Langsmith - fleet usage created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: LANGSMITH_API_KEY: LANGSMITH_API_KEY capability: consumes: - type: http namespace: langsmith-fleet-usage baseUri: '' description: LangSmith — fleet usage business capability. Self-contained, no shared references. resources: - name: v1-platform-fleet-usage-agents path: /v1/platform/fleet/usage/agents operations: - name: get method: GET description: List fleet agents with usage outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: limit in: query type: integer description: Max results (max 100) - name: start_time in: query type: string description: Start of cost window (ISO8601) required: true - name: end_time in: query type: string description: End of cost window (ISO8601) required: true - name: sort_by in: query type: string description: Sort field (cost, runs, last_used, first_used) - name: sort_order in: query type: string description: Sort direction (asc, desc) - name: v1-platform-fleet-usage-models path: /v1/platform/fleet/usage/models operations: - name: get method: GET description: List fleet models with usage outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: limit in: query type: integer description: Max results (max 100) - name: start_time in: query type: string description: Start of window (ISO8601) required: true - name: end_time in: query type: string description: End of window (ISO8601) required: true - name: sort_by in: query type: string description: Sort field (cost, runs, last_used) - name: sort_order in: query type: string description: Sort direction (asc, desc) - name: v1-platform-fleet-usage-tools path: /v1/platform/fleet/usage/tools operations: - name: get method: GET description: List fleet tools with usage outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: limit in: query type: integer description: Max results (max 100) - name: start_time in: query type: string description: Start of window (ISO8601) required: true - name: end_time in: query type: string description: End of window (ISO8601) required: true - name: sort_by in: query type: string description: Sort field (runs, avg_latency_ms, agent_count, last_used) - name: sort_order in: query type: string description: Sort direction (asc, desc) - name: v1-platform-fleet-usage-users path: /v1/platform/fleet/usage/users operations: - name: get method: GET description: List fleet users with usage outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: limit in: query type: integer description: Max results (max 100) - name: start_time in: query type: string description: Start of cost window (ISO8601) required: true - name: end_time in: query type: string description: End of cost window (ISO8601) required: true - name: sort_by in: query type: string description: Sort field (cost, runs, agent_count, last_used, first_used) - name: sort_order in: query type: string description: Sort direction (asc, desc) authentication: type: bearer token: '{{env.LANGSMITH_API_KEY}}' exposes: - type: rest namespace: langsmith-fleet-usage-rest port: 8080 description: REST adapter for LangSmith — fleet usage. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/platform/fleet/usage/agents name: v1-platform-fleet-usage-agents description: REST surface for v1-platform-fleet-usage-agents. operations: - method: GET name: get description: List fleet agents with usage call: langsmith-fleet-usage.get with: limit: rest.limit start_time: rest.start_time end_time: rest.end_time sort_by: rest.sort_by sort_order: rest.sort_order outputParameters: - type: object mapping: $. - path: /v1/v1/platform/fleet/usage/models name: v1-platform-fleet-usage-models description: REST surface for v1-platform-fleet-usage-models. operations: - method: GET name: get description: List fleet models with usage call: langsmith-fleet-usage.get with: limit: rest.limit start_time: rest.start_time end_time: rest.end_time sort_by: rest.sort_by sort_order: rest.sort_order outputParameters: - type: object mapping: $. - path: /v1/v1/platform/fleet/usage/tools name: v1-platform-fleet-usage-tools description: REST surface for v1-platform-fleet-usage-tools. operations: - method: GET name: get description: List fleet tools with usage call: langsmith-fleet-usage.get with: limit: rest.limit start_time: rest.start_time end_time: rest.end_time sort_by: rest.sort_by sort_order: rest.sort_order outputParameters: - type: object mapping: $. - path: /v1/v1/platform/fleet/usage/users name: v1-platform-fleet-usage-users description: REST surface for v1-platform-fleet-usage-users. operations: - method: GET name: get description: List fleet users with usage call: langsmith-fleet-usage.get with: limit: rest.limit start_time: rest.start_time end_time: rest.end_time sort_by: rest.sort_by sort_order: rest.sort_order outputParameters: - type: object mapping: $. - type: mcp namespace: langsmith-fleet-usage-mcp port: 9090 transport: http description: MCP adapter for LangSmith — fleet usage. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-fleet-agents-usage description: List fleet agents with usage hints: readOnly: true destructive: false idempotent: true call: langsmith-fleet-usage.get with: limit: tools.limit start_time: tools.start_time end_time: tools.end_time sort_by: tools.sort_by sort_order: tools.sort_order outputParameters: - type: object mapping: $. - name: list-fleet-models-usage description: List fleet models with usage hints: readOnly: true destructive: false idempotent: true call: langsmith-fleet-usage.get with: limit: tools.limit start_time: tools.start_time end_time: tools.end_time sort_by: tools.sort_by sort_order: tools.sort_order outputParameters: - type: object mapping: $. - name: list-fleet-tools-usage description: List fleet tools with usage hints: readOnly: true destructive: false idempotent: true call: langsmith-fleet-usage.get with: limit: tools.limit start_time: tools.start_time end_time: tools.end_time sort_by: tools.sort_by sort_order: tools.sort_order outputParameters: - type: object mapping: $. - name: list-fleet-users-usage description: List fleet users with usage hints: readOnly: true destructive: false idempotent: true call: langsmith-fleet-usage.get with: limit: tools.limit start_time: tools.start_time end_time: tools.end_time sort_by: tools.sort_by sort_order: tools.sort_order outputParameters: - type: object mapping: $.