get_service
Retrieve detailed information for any service on the402.ai marketplace by its ID, including pricing, required inputs, deliverables, estimated delivery time, provider details, and reputation scores.
Instructions
Get full details for a specific service on the402.ai by its ID. Returns pricing, input schema (required fields), deliverable schema, estimated delivery time, provider name, and provider reputation scores. No authentication required.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_id | Yes | The service ID to look up |
Implementation Reference
- src/tools/discovery.ts:63-77 (handler)Registration and implementation of the 'get_service' tool.
server.tool( "get_service", "Get full details for a specific service on the402.ai by its ID. Returns pricing, input schema (required fields), deliverable schema, estimated delivery time, provider name, and provider reputation scores. No authentication required.", { service_id: z.string().describe("The service ID to look up"), }, async ({ service_id }) => { const result = await client.get(`/v1/services/${service_id}`); return { content: [ { type: "text" as const, text: JSON.stringify(result, null, 2) }, ], }; } );