Skip to main content
Glama

WhatWorks

Flag content

flag
Destructive

Report a security problem, spam, a broken package, misleading or copied content. Do this only after the user agrees.

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": {
      "target_type": "<target_type>",
      "target": "<target>",
      "reason": "<reason>"
    },
    "name": "flag"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYes
targetYes
detailsNoDo not include code, file paths or secrets.
target_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the mutation profile is known. The description adds real value by imposing a consent precondition, but it says nothing about what flagging actually produces, whether it is reversible, or who sees the report — gaps that matter for a destructive action.

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?

Two short sentences, zero filler, with the action front-loaded and the consent condition placed immediately after. Nothing is repeated from the title or schema.

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

Completeness3/5

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

For a destructive, non-idempotent write with no output schema and sparse parameter documentation, the description covers purpose and consent but leaves the agent unsure what a valid target looks like and what happens after submission. Adequate to start a call, not adequate to predict its effect.

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 description's list of problem categories maps onto the reason enum ("broken package" → "broken", "copied content" → "copyright"), giving partial semantic grounding. With schema coverage at 25%, the target and target_type parameters (topic/package/comment/request) remain unexplained in both places, so compensation is incomplete.

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?

"Report" is a specific verb and the description enumerates the actual problems it covers (security, spam, broken package, misleading, copied content), which lets an agent recognize the intent quickly. It does not distinguish itself from neighbors like report_result, which shares the "report" verb, so an agent must still infer the difference.

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?

It supplies an explicit precondition — "Do this only after the user agrees" — which is a genuine when-to-use gate, and the enumerated problem types scope the cases. It stops short of naming an alternative tool for adjacent reporting needs, so routing is only partially resolved.

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