naftiko: "1.0.0-alpha2" info: label: "Letta API — Metadata" description: >- Metadata — service and runtime metadata. 5 operations. Lead operation: Retrieve Current Organization Balance. Self-contained Naftiko capability covering one Letta business surface. tags: - Letta - Stateful Agents - Metadata created: "2026-05-08" modified: "2026-05-22" binds: - namespace: env keys: LETTA_API_KEY: LETTA_API_KEY capability: consumes: - type: http namespace: "letta-metadata" baseUri: "https://api.letta.com" description: "Letta API — Metadata business capability. Self-contained, no shared references." authentication: type: bearer token: "{{env.LETTA_API_KEY}}" resources: - name: "metadata-balance" path: "/v1/metadata/balance" operations: - name: "metadata_retrievecurrentbalances" method: GET description: "Retrieve Current Organization Balance" outputRawFormat: json outputParameters: - name: result type: object value: "$." - name: "metadata-feedback" path: "/v1/metadata/feedback" operations: - name: "metadata_sendfeedback" method: POST description: "Send User Feedback" inputParameters: - name: "body" in: body type: object required: true description: "Body" outputRawFormat: json outputParameters: - name: result type: object value: "$." - name: "metadata-telemetry" path: "/v1/metadata/telemetry" operations: - name: "metadata_sendtelemetry" method: POST description: "Send Telemetry Event" inputParameters: - name: "body" in: body type: object required: true description: "Body" outputRawFormat: json outputParameters: - name: result type: object value: "$." - name: "metadata-status" path: "/v1/metadata/status" operations: - name: "metadata_getstatus" method: GET description: "Gets Your Letta Cloud Status" outputRawFormat: json outputParameters: - name: result type: object value: "$." - name: "metadata-user" path: "/v1/metadata/user" operations: - name: "metadata_getuser" method: GET description: "Get Current User Information" outputRawFormat: json outputParameters: - name: result type: object value: "$." exposes: - type: rest namespace: "letta-metadata-rest" port: 8080 description: "REST adapter for Letta API — Metadata. One Spectral-compliant resource per consumed operation." resources: - path: "/v1/metadata/balance" name: "metadata-balance" description: "REST surface for metadata-balance." operations: - method: GET name: "metadata_retrievecurrentbalances" description: "Retrieve Current Organization Balance" call: "letta-metadata.metadata_retrievecurrentbalances" outputParameters: - type: object mapping: "$." - path: "/v1/metadata/feedback" name: "metadata-feedback" description: "REST surface for metadata-feedback." operations: - method: POST name: "metadata_sendfeedback" description: "Send User Feedback" call: "letta-metadata.metadata_sendfeedback" with: "body": "rest.body" outputParameters: - type: object mapping: "$." - path: "/v1/metadata/telemetry" name: "metadata-telemetry" description: "REST surface for metadata-telemetry." operations: - method: POST name: "metadata_sendtelemetry" description: "Send Telemetry Event" call: "letta-metadata.metadata_sendtelemetry" with: "body": "rest.body" outputParameters: - type: object mapping: "$." - path: "/v1/metadata/status" name: "metadata-status" description: "REST surface for metadata-status." operations: - method: GET name: "metadata_getstatus" description: "Gets Your Letta Cloud Status" call: "letta-metadata.metadata_getstatus" outputParameters: - type: object mapping: "$." - path: "/v1/metadata/user" name: "metadata-user" description: "REST surface for metadata-user." operations: - method: GET name: "metadata_getuser" description: "Get Current User Information" call: "letta-metadata.metadata_getuser" outputParameters: - type: object mapping: "$." - type: mcp namespace: "letta-metadata-mcp" port: 9090 transport: http description: "MCP adapter for Letta API — Metadata. One verb-noun tool per consumed operation." tools: - name: "retrieve-current-organization-balance" description: "Retrieve Current Organization Balance" hints: readOnly: true destructive: false idempotent: true call: "letta-metadata.metadata_retrievecurrentbalances" outputParameters: - type: object mapping: "$." - name: "send-user-feedback" description: "Send User Feedback" hints: readOnly: false destructive: false idempotent: false call: "letta-metadata.metadata_sendfeedback" with: "body": "tools.body" outputParameters: - type: object mapping: "$." - name: "send-telemetry-event" description: "Send Telemetry Event" hints: readOnly: false destructive: false idempotent: false call: "letta-metadata.metadata_sendtelemetry" with: "body": "tools.body" outputParameters: - type: object mapping: "$." - name: "gets-your-letta-cloud-status" description: "Gets Your Letta Cloud Status" hints: readOnly: true destructive: false idempotent: true call: "letta-metadata.metadata_getstatus" outputParameters: - type: object mapping: "$." - name: "get-current-user-information" description: "Get Current User Information" hints: readOnly: true destructive: false idempotent: true call: "letta-metadata.metadata_getuser" outputParameters: - type: object mapping: "$."