Skip to main content
Glama

gograph_httpcalls

Read-onlyIdempotent

Lists bounded pages of Go net/http call evidence—Get, Post, PostForm, Head, and NewRequest usage—to audit outbound HTTP destinations, static URL/base expressions, and unresolved diagnostics.

Instructions

List a bounded page of HTTP evidence from imported, unshadowed net/http Get/Post/PostForm/Head calls and possible NewRequest/NewRequestWithContext construction. Client receiver methods and arbitrary URL-building functions are not inferred. Static strings and bounded lexical base + static suffix expressions are recorded; runtime environment values are never read. Construction is not dispatch proof. Workspace http_clients may explicitly map bases or env:KEY to scoped logical authorities; unresolved destinations remain workspace diagnostics. Optional term matches method, URL/base, or function. RETURNS: gograph.results.v1 rows with file/line and dynamic base/suffix or request-only evidence in detail, plus total/returned/truncated/next_cursor. For server routes use gograph_routes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gograph_httpcalls"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoAbsolute path of your checkout or worktree (alias cwd).
termNoOptional filter term (matches method, URL, or function name — e.g., 'POST' or 'api.example.com')
limitNoRows per page.
cursorNonext_cursor from the previous page.
intentionNoRationale; required with an active session.
session_idNoSession from session_create; omit for none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.7.21
    • changedInput schema / properties / cursor / description
      Previous value: -"Opaque next_cursor for the same graph snapshot and result selection."New value: +"next_cursor from the previous page."
    • changedInput schema / properties / intention / description
      Previous value: -"Technical rationale, required for analytical calls selecting an active session."New value: +"Rationale; required with an active session."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum rows per page; the byte budget may return fewer."New value: +"Rows per page."
    • changedInput schema / properties / root / description
      Previous value: -"Absolute path of the checkout you are working in (your cwd or git worktree). Must be this server's repository or one of its git worktrees; the answer then comes from that checkout's own graph. A path elsewhere is refused. Alias: cwd. Omit only when the configured checkout is the one you mean."New value: +"Absolute path of your checkout or worktree (alias cwd)."
    • changedInput schema / properties / session_id / description
      Previous value: -"Caller selector returned by session_create. Omission means an independent caller; never inherits server environment or another caller's session."New value: +"Session from session_create; omit for none."
  2. Changed3 schema fields changedv1.7.18
    • addedInput schema / properties / intention
      Added value: +{
      +  "description": "Technical rationale, required for analytical calls selecting an active session.",
      +  "type": "string"
      +}
    • addedInput schema / properties / root
      Added value: +{
      +  "description": "Absolute path of the checkout you are working in (your cwd or git worktree). Must be this server's repository or one of its git worktrees; the answer then comes from that checkout's own graph. A path elsewhere is refused. Alias: cwd. Omit only when the configured checkout is the one you mean.",
      +  "type": "string"
      +}
    • addedInput schema / properties / session_id
      Added value: +{
      +  "description": "Caller selector returned by session_create. Omission means an independent caller; never inherits server environment or another caller's session.",
      +  "type": "string"
      +}
  3. Changed2 schema fields changedv1.7.5
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "Opaque next_cursor for the same graph snapshot and result selection.",
      +  "maxLength": 128,
      +  "type": "string"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 100,
      +  "description": "Maximum rows per page; the byte budget may return fewer.",
      +  "maximum": 200,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  4. Addedv1.5.3
  5. Removedv1.5.3
  6. Addedv1.4.80

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world, so the safety profile is covered. The description still adds real behavioral context beyond them: only static strings and bounded lexical base + static suffix expressions are captured, runtime environment values are never read, unresolved destinations surface as workspace diagnostics, and paging can truncate. Minor gap: it doesn't say how expensive the scan is or what happens on an empty/no-workspace case.

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?

Front-loaded with the core scope, then exclusions, then return shape, so the important constraints come first. Prose is dense and every sentence carries technical substance, though the long middle sentence about lexical base + suffix expressions is harder to parse than necessary.

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

Completeness5/5

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

Although there is no output schema, the RETURNS block specifies the gograph.results.v1 row shape (file/line, dynamic base/suffix or request-only detail) plus total/returned/truncated/next_cursor. Combined with the stated static-analysis limits, workspace http_clients authority mapping, and diagnostics fallback, an agent has what it needs to call this correctly.

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 every parameter is already documented, and the one parameter fact in the description (term matches method, URL/base, or function) essentially restates the schema's term description. The phrase "bounded page" and the RETURNS note on next_cursor add only marginal framing beyond limit/cursor. Baseline 3 is correct since the schema carries the burden.

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

Purpose5/5

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

Opens with a specific verb and resource ("List a bounded page of HTTP evidence") and immediately narrows the scope to imported, unshadowed net/http Get/Post/PostForm/Head calls plus NewRequest construction, while naming the excluded cases (client receiver methods, arbitrary URL builders). The final routing line "For server routes use gograph_routes" makes it distinguishable from the sibling that would otherwise be confused with it.

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

Usage Guidelines5/5

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

Gives explicit when-not conditions (client receiver methods and arbitrary URL-building functions are not inferred) and names the alternative tool for a different intent (gograph_routes for server routes). It also warns that construction is not dispatch proof, so the agent knows not to over-interpret results. This is close to a full when/when-not/alternative statement.

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