Skip to main content
Glama

delete_service

Remove a service listing permanently from the402.ai marketplace, making it undiscoverable and unpurchasable. Requires service owner authorization.

Instructions

Remove a service listing from the402.ai marketplace. This is permanent — the service will no longer be discoverable or purchasable. Requires API key (service owner only).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
service_idYesThe service ID to delete

Implementation Reference

  • Implementation of the 'delete_service' tool, which handles the request to remove a service listing by calling the API client's authDelete method.
    server.tool(
    	"delete_service",
    	"Remove a service listing from the402.ai marketplace. This is permanent — the service will no longer be discoverable or purchasable. Requires API key (service owner only).",
    	{
    		service_id: z.string().describe("The service ID to delete"),
    	},
    	async ({ service_id }) => {
    		const result = await client.authDelete(`/v1/services/${service_id}`);
    		return {
    			content: [
    				{ type: "text" as const, text: JSON.stringify(result, null, 2) },
    			],
    		};
    	}
    );
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden and excels by disclosing critical behavioral traits: permanence ('This is permanent'), consequences ('will no longer be discoverable or purchasable'), and authentication requirements ('Requires API key (service owner only)'), which are essential for safe tool invocation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core action, followed by critical behavioral details in two concise sentences. Every sentence adds value without redundancy, making it efficient and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive tool with no annotations or output schema, the description is highly complete—covering purpose, permanence, consequences, and auth needs. It could slightly improve by hinting at response format or error cases, but it's largely sufficient given the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, clearly documenting the 'service_id' parameter. The description does not add any additional meaning or context about the parameter beyond what the schema provides, meeting the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Remove') and target resource ('a service listing from the402.ai marketplace'), distinguishing it from sibling tools like 'update_service' or 'create_service'. It provides explicit scope and consequence.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context by stating it's for removing services from the marketplace and specifies prerequisites ('Requires API key (service owner only)'), but does not explicitly compare to alternatives like 'update_service' or indicate when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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