inquire_service
Start conversations with service providers on the402.ai marketplace to ask questions, request custom quotes, or negotiate terms before purchasing services.
Instructions
Open a conversation thread about a service on the402.ai. Costs $0.001 from your pre-funded balance. Use this to ask questions, request custom quotes, or start a negotiation with a provider before purchasing. Requires API key.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_id | Yes | The service ID to inquire about | |
| brief | Yes | Your message to the provider — describe what you need, ask questions, or request a custom quote |
Implementation Reference
- src/tools/threads.ts:17-27 (handler)The implementation of the `inquire_service` tool handler.
async ({ service_id, brief }) => { const result = await client.balancePost( `/v1/services/${service_id}/inquire`, { brief } ); return { content: [ { type: "text" as const, text: JSON.stringify(result, null, 2) }, ], }; } - src/tools/threads.ts:6-28 (registration)Registration of the `inquire_service` tool within the McpServer.
server.tool( "inquire_service", "Open a conversation thread about a service on the402.ai. Costs $0.001 from your pre-funded balance. Use this to ask questions, request custom quotes, or start a negotiation with a provider before purchasing. Requires API key.", { service_id: z.string().describe("The service ID to inquire about"), brief: z .string() .describe( "Your message to the provider — describe what you need, ask questions, or request a custom quote" ), }, async ({ service_id, brief }) => { const result = await client.balancePost( `/v1/services/${service_id}/inquire`, { brief } ); return { content: [ { type: "text" as const, text: JSON.stringify(result, null, 2) }, ], }; } ); - src/tools/threads.ts:9-16 (schema)Input schema validation using zod for `inquire_service`.
{ service_id: z.string().describe("The service ID to inquire about"), brief: z .string() .describe( "Your message to the provider — describe what you need, ask questions, or request a custom quote" ), },