delete_competitor
Remove a competitor from a project to keep your competitive analysis focused and up to date.
Instructions
Remove a competitor from a project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | ||
| competitorId | Yes |
Implementation Reference
- src/tools/competitors.js:34-41 (handler)The handler for 'delete_competitor' that calls the API to delete a competitor. It calls api.delete(`/projects/${projectId}/competitors/${competitorId}`).
properties: { projectId: { type: 'string' }, competitorId: { type: 'string' }, }, required: ['projectId', 'competitorId'], }, handler: async ({ projectId, competitorId }) => api.delete(`/projects/${projectId}/competitors/${competitorId}`), - src/tools/competitors.js:32-38 (schema)Input schema for 'delete_competitor' defining required parameters: projectId (string) and competitorId (string).
inputSchema: { type: 'object', properties: { projectId: { type: 'string' }, competitorId: { type: 'string' }, }, required: ['projectId', 'competitorId'], - src/tools/competitors.js:29-42 (registration)The 'delete_competitor' tool is defined as an object inside the 'competitorTools' array exported from src/tools/competitors.js.
{ name: 'delete_competitor', description: 'Remove a competitor from a project.', inputSchema: { type: 'object', properties: { projectId: { type: 'string' }, competitorId: { type: 'string' }, }, required: ['projectId', 'competitorId'], }, handler: async ({ projectId, competitorId }) => api.delete(`/projects/${projectId}/competitors/${competitorId}`), }, - src/index.js:37-39 (registration)The competitorTools array is spread into ALL_TOOLS, which is then registered with the MCP server via ListToolsRequestSchema and CallToolRequestSchema handlers.
...competitorTools, ...opportunityTools, ]; - src/client.js:78-83 (helper)The api.delete helper used by the handler. Calls the internal request() function with DELETE method.
export const api = { get: (path, query) => request('GET', path, { query }), post: (path, body) => request('POST', path, { body }), patch: (path, body) => request('PATCH', path, { body }), delete: (path) => request('DELETE', path), };