Skip to main content
Glama

Attach Tag To Prompt Tool

attach-tag-to-prompt-tool
Idempotent

Attach a tag to a prompt. Idempotent: attaching a tag that is already attached succeeds without change. Both the prompt and the tag must belong to the same project.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "prompt_id": "<prompt_id>",
      "tag_id": "<tag_id>"
    },
    "name": "attach-tag-to-prompt-tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
tag_idYesThe numeric id of the tag to attach. Must belong to the same project as the prompt.
prompt_idYesThe numeric id of the prompt to tag.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the repeated idempotency sentence adds little. The same-project requirement is real added behavioral context, but the description says nothing about what a successful call returns or how a cross-project mismatch is signaled.

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

Conciseness4/5

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

Three short sentences, front-loaded with the action, then behavior, then precondition. The idempotency sentence partly restates the annotation, which is a small amount of unearned text, but nothing is padded.

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 simple two-required-id tool with no nested objects and no output schema, the description covers the action and the key failure precondition. Only the return value and error surface are unaddressed, which is minor at this 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?

Schema coverage is 100% and both parameters are integer ids already documented as prompt/tag identifiers. The description's same-project note duplicates what the tag_id schema description already says, so no meaning is added beyond the schema.

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?

States a specific verb and resource pair (attach a tag to a prompt) that is unambiguous and clearly distinct from the detach-tag-from-prompt sibling. It never explicitly names an alternative, but the operation itself is fully specified.

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

Usage Guidelines3/5

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

The same-project precondition is stated, which is genuine usage context (when this will succeed vs fail). There is no explicit guidance on when to reach for this versus detach-tag-from-prompt-tool or create-tag-tool, so routing is only implied by the verb.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources