Skip to main content
Glama

delete_terms

Remove specific terms from translation projects in POEditor by specifying exact term and context combinations to delete.

Instructions

Remove one or more terms from the project. Provide the exact term and context combination to delete.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idNo
itemsYes

Implementation Reference

  • The inline async handler function for the 'delete_terms' tool. It validates the project ID, maps the input items to a payload with term and context, JSON stringifies it, calls the poeditor API endpoint 'terms/delete', and returns the result as formatted JSON text content.
    async (args) => {
      const id = requireProjectId(args.project_id ?? null);
      const payload = args.items.map((item) => ({
        term: item.term,
        context: item.context ?? ""
      }));
      const data = JSON.stringify(payload);
      const res = await poeditor("terms/delete", { id: String(id), data });
      return { content: [{ type: "text", text: JSON.stringify(res.result ?? {}, null, 2) }] };
    }
  • Zod schema DeleteTermsInput defining the input structure: optional project_id (positive integer) and required items array (each with required term string and optional context string), with at least one item.
    const DeleteTermsInput = z.object({
      project_id: z.number().int().positive().optional(),
      items: z.array(z.object({
        term: z.string().min(1),
        context: z.string().optional()
      })).min(1)
    });
  • src/server.ts:243-257 (registration)
    The server.tool registration for 'delete_terms', specifying the tool name, description, input schema (DeleteTermsInput.shape), and the inline handler function.
    server.tool(
      "delete_terms",
      "Remove one or more terms from the project. Provide the exact term and context combination to delete.",
      DeleteTermsInput.shape,
      async (args) => {
        const id = requireProjectId(args.project_id ?? null);
        const payload = args.items.map((item) => ({
          term: item.term,
          context: item.context ?? ""
        }));
        const data = JSON.stringify(payload);
        const res = await poeditor("terms/delete", { id: String(id), data });
        return { content: [{ type: "text", text: JSON.stringify(res.result ?? {}, null, 2) }] };
      }
    );
Behavior2/5

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

With no annotations, the description carries full burden but only states the action without disclosing behavioral traits like permissions needed, whether deletion is permanent, rate limits, or error handling. It mentions 'exact term and context combination' which adds some context but is insufficient for a mutation tool.

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 concise with two sentences that are front-loaded and waste no words. Every part contributes directly to the tool's purpose and basic usage.

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

Completeness2/5

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

For a destructive mutation tool with no annotations, 0% schema coverage, and no output schema, the description is incomplete. It lacks critical details like return values, side effects, or error scenarios, making it inadequate for safe and effective use by an AI agent.

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?

Schema description coverage is 0%, but the description adds minimal semantics by hinting at parameters ('exact term and context combination'), which loosely maps to the 'items' array structure. However, it doesn't explain 'project_id' or provide details beyond what the schema implies, leaving significant gaps.

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

Purpose4/5

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

The description clearly states the action ('Remove') and target ('terms from the project'), distinguishing it from siblings like 'delete_translations' or 'update_terms'. However, it doesn't specify what type of terms (e.g., glossary terms, taxonomy terms) or fully differentiate from all siblings like 'list_terms' beyond the verb.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives like 'update_terms' or 'delete_translations' is provided. The description implies usage for deletion but lacks context on prerequisites, error conditions, or comparisons to sibling tools.

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/ryan-shaw/poeditor-mcp'

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