Skip to main content
Glama

function.by_name

Retrieve function details by name for reverse-engineering tasks; use exact or fuzzy matching with a result limit to quickly locate the target function.

Instructions

Look up a function by name and return its details.

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": {
      "session_id": "<session_id>",
      "name": "<name>"
    },
    "name": "function.by_name"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
exactNo
limitNo
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it does the bare minimum: it implies a read-only lookup but says nothing about not-found behavior, ambiguity handling, or what "details" includes. It never explains the role of session_id or how limit truncates results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single efficient sentence with no filler, so it is not bloated. However, its brevity comes from under-specification rather than from tight, information-dense phrasing.

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?

For a four-parameter tool with zero schema descriptions, no annotations, and no output schema, the description is far too thin. An agent cannot determine matching behavior, result limits, or the shape of the returned "details" from this definition alone.

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

Parameters1/5

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

Schema description coverage is 0% for four parameters, and the description compensates for none of them. `exact`, `limit`, and `session_id` are entirely undocumented, leaving an agent to guess at matching mode, result capping, and required session context.

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

Purpose3/5

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

"Look up a function by name and return its details" names a verb (look up) and resource (function), but it largely restates what the tool name function.by_name already conveys, and "its details" is left undefined. It gives no signal to separate it from symbol.by_name or function.list, both of which plausibly return a similar record.

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

Usage Guidelines2/5

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

There is no guidance on when to choose this over function.list, symbol.by_name, or function.at, nor on what happens when a name is ambiguous or absent. The presence of an `exact` flag strongly implies fuzzy-vs-exact matching semantics that the description never mentions.

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