Skip to main content
Glama

submit_flag

Submit a flag for a CTF challenge by providing the flag value and challenge ID or name; requires explicit confirmation.

Instructions

Submit a flag for a challenge.

Safety: requires confirm=True. Provide exactly one of challenge_id or challenge_name. The flag value is never logged.

Args: flag: the flag to submit. challenge_name: name of the challenge to submit against. challenge_id: numeric id of the challenge to submit against. confirm: must be set to True as an explicit submission opt-in.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flagYes
confirmNo
challenge_idNo
challenge_nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose meaningful traits: an explicit confirm opt-in is required before submission, exactly one identifier must be supplied, and the flag value is never logged. It does not describe what a success/failure response looks like, though an output schema exists to cover returns.

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 safety and exclusivity constraints are front-loaded in the first two lines, then the Args list fills the 0%-coverage schema gap without padding. Every sentence serves selection or invocation.

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 mutating submission tool with a confirm gate and an existing output schema, the description covers the safety prerequisite, parameter exclusivity, and privacy behavior. Return handling is delegated to the output schema, so what remains is minimal.

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

Parameters4/5

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

Schema coverage is 0%, so the Args block is doing real work: it documents all four parameters and adds semantics beyond the schema's bare titles, notably that confirm must be True (not merely default) and that challenge_id and challenge_name are mutually exclusive. This mutual-exclusion rule is not encoded in the schema and is genuinely useful.

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 states a specific verb+resource ('Submit a flag for a challenge'), so the agent knows exactly what the tool does. It does not explicitly distinguish itself from siblings like unlock_hint or scoreboard, but the action is unambiguous.

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 gives concrete preconditions: 'requires confirm=True' and 'Provide exactly one of challenge_id or challenge_name.' That tells the agent how to call it safely. It stops short of naming when an alternative tool should be used instead, so it is clear context without full routing guidance.

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