Skip to main content
Glama
dorkian

code-graph-mcp

by dorkian

Map frontend to backend

map_frontend_to_backend

Trace the full chain from frontend component or route to backend handler function. Accepts component names, routes, or endpoint paths to map frontend elements to their backend counterparts.

Instructions

Trace the full chain Component/Route -> HTTP call -> backend route -> handler function. Accepts a frontend name (LoginPage), a route (/login), or an endpoint path (/api/login) and works from either end. Use for 'where does X land in the backend?' questions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYescomponent name, frontend route, or endpoint path
max_tokensNoresponse token budget (default 2000)
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions inputs and directionality but does not disclose details like matching exactness, handling of multiple matches, performance implications, or whether it requires network access.

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?

Two sentences with no wasted words. First sentence states the action, second gives examples and use case. Highly structured and front-loaded.

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

Completeness3/5

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

The description covers purpose, inputs, and use case well. However, it does not mention what the output looks like (e.g., a list of chain steps), which is important for an agent to interpret results. Given no output schema, this gap affects completeness.

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 100% with descriptions, but the tool description adds examples ('LoginPage', '/login', '/api/login') and clarifies that it works from either end, providing context beyond the schema.

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?

The description clearly states the tool traces the full frontend-to-backend chain, specifying inputs like component name, route, or endpoint. It uses a specific verb ('trace') and resource ('full chain'), distinguishing it from siblings.

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?

The description explicitly says 'Use for where does X land in the backend?' and provides examples of acceptable inputs. It implies the context of use but does not explicitly state when not to use or name alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dorkian/code-graph-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server