Skip to main content
Glama

search_world_code

Read-onlyIdempotent

Search literal text across staged project files. Returns numbered matches and pagination. Use this to locate CSS, handlers and controller rules before focused reads and patches.

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": {
      "workspaceId": "<workspaceId>",
      "codeWorkspaceId": "<codeWorkspaceId>",
      "query": "<query>"
    },
    "name": "search_world_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
queryYes
offsetNo
workspaceIdYes
codeWorkspaceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / codeWorkspaceId / $ref
      Removed value: -"#/properties/workspaceId"
    • addedInput schema / properties / codeWorkspaceId / pattern
      Added value: +"^[A-Za-z0-9_-]{1,128}$"
    • addedInput schema / properties / codeWorkspaceId / type
      Added value: +"string"
    • addedInput schema / properties / offset / maximum
      Added value: +9007199254740991
  2. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds value beyond that by disclosing the return shape (numbered matches plus pagination) and the fact that matching is literal rather than pattern-based. It omits case sensitivity, result caps, and any auth or staging prerequisites.

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?

Three short sentences, front-loaded with purpose, then return shape, then usage. Nothing is padded, though the pagination mention is left dangling without any explanation of the offset parameter.

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

Completeness2/5

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

With five parameters, three of them required, zero schema descriptions, and no output schema, the description carries a heavy burden it does not meet. An agent knows why to call it and roughly what comes back, but not how to populate the two workspace identifiers or path and offset.

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

Parameters2/5

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

Schema description coverage is 0% across five parameters, and the description compensates for almost none of it. It never explains workspaceId vs codeWorkspaceId, what path restricts, or how offset interacts with the stated pagination. Only 'query' is implicitly characterized as literal text.

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?

States a specific verb and resource: search literal text across staged project files. The word 'literal' usefully distinguishes it from a regex or semantic search, and 'staged project files' scopes it to the code workspace. It does not explicitly contrast with the sibling search_workspace, so an agent must infer the difference from the name.

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?

Gives concrete usage context: locate CSS, handlers and controller rules before focused reads and patches, which implies the read_world_code_file / apply_world_code_patch workflow. No explicit when-not-to-use or named alternative is provided, so it stops short of full routing guidance.

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.