Skip to main content
Glama
ContextMap
by Leoomk

mc_obter_esqueleto

Returns only function and type signatures from a code file, omitting implementation bodies to cut token usage for AI planning and edits.

Instructions

Devolve apenas as assinaturas de funções e tipos de um arquivo (stubs elididos com ⋮), economizando até 94% dos tokens.

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": {
      "arquivo": "<arquivo>"
    },
    "name": "mc_obter_esqueleto"
  }
}

Input Schema

NameRequiredDescriptionDefault
arquivoYesCaminho relativo do arquivo (ex: 'src/services/api.ts')
caminho_projetoNoCaminho do projeto caso ainda não esteja carregado

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose a key behavioral trait: bodies are elided and replaced with the '⋮' marker, so the agent knows the returned text is not complete source. It does not cover failure behavior for a nonexistent path, permission/read semantics, or how much of the file is skipped, which are notable gaps for an unannotated 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?

A single front-loaded sentence with zero waste: the resource, the elision convention, and the benefit are all packed in without padding. Nothing could be removed without losing information.

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 read-only extraction tool with fully documented parameters, the description covers what the output looks like (signatures plus ⋮ elisions), which matters since there is no output schema. Only the absence of edge-case behavior (missing file, unloaded project) keeps it from being fully complete.

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 100%, so both parameters (arquivo, caminho_projeto) are already documented with an example path in the schema. The description adds no meaning beyond that — it never explains when caminho_projeto is required versus optional. Baseline 3 applies when the schema does the heavy lifting.

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 and resource: it returns only function and type signatures from a file. The scope qualifier 'apenas' makes clear this is not a full-content read, which lets an agent distinguish it from siblings like mc_obter_resumo or mc_obter_modelo without opening a schema. It stops short of naming any sibling explicitly, so differentiation is inferential rather than stated.

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?

Usage is implied through the token-saving rationale ('economizando até 94% dos tokens'), which signals to prefer this over a full read when only signatures are needed. However, there is no explicit when-to-use/when-not statement, no mention of alternatives, and no prerequisite guidance such as what happens if the project is not yet loaded.

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