naftiko: 1.0.0-alpha2 info: title: Microservice Rightsize Capability description: A capability that right-sizes microservice responses for AI consumption — drops verbose fields, normalizes shapes, returns a token-budgeted view. tags: [Naftiko, Microservice, Rightsize] created: '2026-05-01' modified: '2026-05-04' binds: - namespace: target-env keys: {TARGET_HOST: TARGET_HOST, TARGET_TOKEN: TARGET_TOKEN} capability: consumes: - namespace: target type: http baseUri: https://{{TARGET_HOST}} authentication: {type: bearer, token: '{{TARGET_TOKEN}}'} resources: - name: resource path: /api/v1/{{resource}}/{{id}} operations: - {name: get-resource, method: GET, inputParameters: [{name: resource, in: path}, {name: id, in: path}]} exposes: - type: rest address: 0.0.0.0 port: 8080 namespace: microservice-rightsize-capability-rest description: Right-sized microservice surface. resources: - name: rightsized path: /rightsized/{{resource}}/{{id}} operations: - {method: GET, name: get-rightsized, inputParameters: [{name: resource, in: path, type: string}, {name: id, in: path, type: string}], call: target.get-resource} - type: mcp address: 0.0.0.0 port: 3010 namespace: microservice-rightsize-capability-mcp description: MCP for right-sized microservice. tools: - name: get-rightsized hints: {readOnly: true} inputParameters: [{name: resource, type: string, required: true}, {name: id, type: string, required: true}] call: target.get-resource - type: skill address: 0.0.0.0 port: 3011 namespace: microservice-rightsize-capability-skills description: Skill for right-sized microservice. skills: - name: microservice-rightsize-capability description: Microservice rightsize. location: file:///opt/naftiko/skills/microservice-rightsize-capability allowed-tools: get-rightsized tools: - {name: get-rightsized, from: {sourceNamespace: microservice-rightsize-capability-mcp, action: get-rightsized}}