Skip to main content
Glama

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
NameRequiredDescriptionDefault
service_idYesThe service ID to inquire about
briefYesYour message to the provider — describe what you need, ask questions, or request a custom quote

Implementation Reference

  • 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) },
    		],
    	};
    }
  • 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) },
    			],
    		};
    	}
    );
  • 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"
    		),
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/the402ai/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server