Skip to main content
Glama

x402_githubsearch_get_v1_code

Search GitHub repositories and source code by query, language, or star count to find relevant projects and snippets. Returns paginated results for code discovery, licensing, and dependency research.

Instructions

githubsearch — GitHub code/repo search API: find repos and code by query, language, stars. Free unauthenticated (60 req/hr). [GET /v1/code] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/code?q=x402%20payment&per_page=5

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": "x402_githubsearch_get_v1_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.5/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 the two most important traits: the unauthenticated 60 req/hr ceiling and the per-call USDC price across eip155:8453/137/42161/480. It says nothing about error/failure behavior, pagination, or what a successful response contains.

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 resource and action, followed by auth/cost and a concrete example — every clause carries information. Slightly dense with chain IDs and price formatting crammed into one sentence, but nothing is wasted.

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?

Covers identity, endpoint, pricing, rate limits, and a worked example for a wrapper-style tool whose four parameters are generic x402 plumbing already fully documented in the schema. The absence of any return-shape or pagination hint is the main remaining gap, and there is no output schema to compensate.

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 all four parameters (body, query, restart, operationId) are already documented, which sets the baseline at 3. The embedded example '/v1/code?q=x402%20payment&per_page=5' usefully demonstrates that GitHub-style parameters like q and per_page belong in the `query` object, adding a little 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?

Names a specific verb and resource ('GitHub code/repo search API: find repos and code by query, language, stars') plus the exact endpoint GET /v1/code, so the agent knows the operation. It does not, however, distinguish itself from the sibling x402_githubsearch_get_v1_repositories — it even claims to 'find repos', which overlaps with that sibling's apparent scope.

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?

Gives useful operating context: free unauthenticated at 60 req/hr, or paid at $0.005 USDC across four chains, which implicitly tells the agent when this is viable. It never states when to prefer the repositories sibling or when this code-search endpoint is the wrong choice.

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

Deploy Server

Other Tools