MCPcopy Index your code
hub / github.com/simstudioai/sim / exceedsMcpServerToolMetadataBudget

Function exceedsMcpServerToolMetadataBudget

apps/sim/lib/mcp/tool-limits.ts:122–127  ·  view source on GitHub ↗
(
  usage: McpToolMetadataUsage,
  tool: { toolName: string; toolDescription: string | null; parameterSchema: unknown }
)

Source from the content-addressed store, hash-verified

120}
121
122export function exceedsMcpServerToolMetadataBudget(
123 usage: McpToolMetadataUsage,
124 tool: { toolName: string; toolDescription: string | null; parameterSchema: unknown }
125): boolean {
126 return validateMcpServerToolMetadataBudget(addMcpToolMetadataUsage(usage, tool)) !== null
127}
128
129export async function getMcpServerToolMetadataUsageRows(
130 tx: DbOrTx,

Callers 1

syncMcpToolsForWorkflowFunction · 0.90

Calls 2

addMcpToolMetadataUsageFunction · 0.85

Tested by

no test coverage detected